import request from '@/utils/request'

export function getPermissionList() {
  return request({
    url: '/sys/permission',
    method: 'get'
  })
}
export function delPermission(id) {
  return request({
    url: '/sys/permission/' + id,
    method: 'delete'
  })
}
export function updataPerm(data) {
  return request({
    url: '/sys/permission/' + data.id,
    method: 'put',
    data
  })
}
export function getPermissionDetail(id) {
  return request({
    url: `/sys/permission/${id}`
  })
}
export function addPerm(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}

